package com.lakeworks.common.domain.channel.ticket;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TicketFactory {

    private long factoryId;

    //工单id
    @NotNull(message = "40700")
    private long ticketId;


    private Long relevanceId;

    //订单编号
    @NotBlank(message = "40700")
    private String orderNo;

    //工单类型
    @NotBlank(message = "40700")
    private String type;

    //工单标题
    @NotBlank(message = "40700")
    private String title;

    //优先级
    @NotBlank(message = "40700")
    private String priority;

    //工单标签
    @NotBlank(message = "40700")
    private String label;

    //备注
    private String comment;


    private String barcode;

    /**
     * 凭证
     */
    private List<String> vouchers;

    //操作选项
    @NotBlank(message = "40700")
    private String eventType;


    private Long channelId;
}
